package ModelLayer;
import java.util.ArrayList;

public class Discount {
    // <editor-fold defaultstate="collapsed" desc="Attributes">
    private int id_discount;
    private int id_discount_type;
    private int id_customer;
    private String name;
    private float value;
    private int quantity;
    private int quantity_per_user;
    private boolean cumulable;
    private boolean cumulable_reduction;
    private int date_from;
    private int date_to;
    private float minimal;
    private boolean active;
    private String description;
    private ArrayList<Integer> categoryIDs = new ArrayList<Integer>();
    private ArrayList<Integer> orderIDs = new ArrayList<Integer>();
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Constructors">
    public Discount() {
    }

    public Discount(int id_discount, int id_discount_type, int id_customer, String name, float value, int quantity, int quantity_per_user, boolean cumulable, boolean cumulable_reduction, int date_from, int date_to, float minimal, boolean active, String description) {
        this.id_discount            = id_discount;
        this.id_discount_type       = id_discount_type;
        this.id_customer            = id_customer;
        this.name                   = name;
        this.value                  = value;
        this.quantity               = quantity;
        this.quantity_per_user      = quantity_per_user;
        this.cumulable              = cumulable;
        this.cumulable_reduction    = cumulable_reduction;
        this.date_from              = date_from;
        this.date_to                = date_to;
        this.minimal                = minimal;
        this.active                 = active;
        this.description            = description;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Set & Get Methods">
    //Set & Get: ID
    public void setIDDiscount(int id_discount) {
        this.id_discount = id_discount;
    }
    public int getIDDiscount() {
        return this.id_discount;
    }

    //Set & Get: ID_Discount_Type
    public void setIDDiscountType(int id_discount_type) {
        this.id_discount_type = id_discount_type;
    }
    public int getIDDiscountType() {
        return this.id_discount_type;
    }

    //Set & Get: ID_Customer
    public void setIDCustomer(int id_customer) {
        this.id_customer = id_customer;
    }
    public int getIDCustomer() {
        return this.id_customer;
    }

    //Set & Get: Name
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return this.name;
    }

    //Set & Get: Value
    public void setValue(float value) {
        this.value = value;
    }
    public float getValue() {
        return this.value;
    }

    //Set & Get: Quantity
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
    public int getQuantity() {
        return this.quantity;
    }

    //Set & Get: Quantity_Per_User
    public void setQuantityPerUser(int quantity_per_user) {
        this.quantity_per_user = quantity_per_user;
    }
    public int getQuantityPerUser() {
        return this.quantity_per_user;
    }

    //Set & Get: Cumulable
    public void setCumulable(boolean cumulable) {
        this.cumulable = cumulable;
    }
    public boolean getCumulable() {
        return this.cumulable;
    }

    //Set & Get: Cumulable_Reduction
    public void setCumulableReduction(boolean cumulable_reduction) {
        this.cumulable_reduction = cumulable_reduction;
    }
    public boolean getCumulableReduction() {
        return this.cumulable_reduction;
    }

    //Set & Get: Date_From
    public void setDateFrom(int date_from) {
        this.date_from = date_from;
    }
    public int getDateFrom() {
        return this.date_from;
    }

    //Set & Get: Date_To
    public void setDateTo(int date_to) {
        this.date_to = date_to;
    }
    public int getDateTo() {
        return this.date_to;
    }

    //Set & Get: Minimal
    public void setMinimal(float minimal) {
        this.minimal = minimal;
    }
    public float getMinimal() {
        return this.minimal;
    }

    //Set & Get: Active
    public void setActive(boolean active) {
        this.active = active;
    }
    public boolean getActive() {
        return this.active;
    }

    //Set & Get: Description
    public void setDescription(String description) {
        this.description = description;
    }
    public String getDescription() {
        return this.description;
    }

    //Set & Get: CategoryIDs
    public void setCategoryIDs(ArrayList<Integer> categoryIDs) {
        this.categoryIDs = categoryIDs;
    }
    public ArrayList<Integer> getCategoryIDs() {
        return this.categoryIDs;
    }

    //Set & Get: OrderIDs
    public void setOrderIDs(ArrayList<Integer> orderIDs) {
        this.orderIDs = orderIDs;
    }
    public ArrayList<Integer> getOrderIDs() {
        return this.orderIDs;
    }
    // </editor-fold>
}
